#include <iostream>

using namespace std;

int main(){
    int x,y;
    int s1 = 24;
    int s2 = 24;
    cin >> x >> y;

    int sum = [s1,s2](int x,int y){
        return x + y + s1 + s2;
    }(x,y);
    cout << sum << endl;
    return 0;
}

